<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
    <base href="<%=basePath%>">
    
    <title>My JSP 'courseAdd.jsp' starting page</title>
    
	<meta http-equiv="pragma" content="no-cache">
	<meta http-equiv="cache-control" content="no-cache">
	<meta http-equiv="expires" content="0">    
	<meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
	<meta http-equiv="description" content="This is my page">
	<!--
	<link rel="stylesheet" type="text/css" href="styles.css">
	-->
	<link rel="stylesheet" type="text/css" href="css/css.css" />
	<script type="text/javascript" src="js/jquery.min.js"></script>
<title>添加/修改课程</title>

</head>
<body>
	<form action="course/AddOrUpdate" method="post" class="definewidth m20">
	<div id="pageAll">
		<div class="pageTop">
			<div class="page">
				<img src="img/coin02.png" /><span><a href="#">首页</a>&nbsp;-&nbsp;<a
					href="#">公共管理</a>&nbsp;-</span>&nbsp;意见管理
			</div>
		</div>
		<div class="page ">
			<div class="banneradd bor">
				<div class="baTopNo">
					<span>添加课程</span>
				</div>
				<div class="baBody">
					<div class="bbD">
						&nbsp;&nbsp;&nbsp;课程编号：<input type="text" class="input3" name="cid" value="${empty cc.cid?'0': cc.cid}" readonly="readonly"/><br><br>
						&nbsp;&nbsp;&nbsp;课程名称：<input type="text" class="input3" name="cname" value="${cc.cname }"/>
					</div>
					<div class="bbD">
					&nbsp;&nbsp;&nbsp;课程详情：<input type="text" class="input3"  name="cdetails" value="${cc.cdetails} "/>
					</div>
					<div class="bbD">
				&nbsp;&nbsp;&nbsp;授课老师：<select class="input3" name="cteacherid">
								<c:forEach items="${teachers }" var="te">
									<option value="${te.tid }" ${te.tid eq cc.cteacherid ? 'selected="selected"' : '' }>
									${te.tname }
									</option>
								</c:forEach>
						</select>
					</div>
					<div class="bbD">
				&nbsp;&nbsp;&nbsp;所属专业有：<br>&nbsp;&nbsp;&nbsp;<%int j =0; %><font style="color:#FF5B16;font-size:15px;">
				<c:forEach items="${cc.majors }" var="cm">${cm.mname }&nbsp;; <% j++; if(j%6==0){ %><br><%} %></c:forEach></font>
				<br><%int i =0; %><br>
						<c:forEach items="${majors }" var="m">
							<input type="checkbox" name="checkboxname" value="${m.mid }" style="zoom:160%"/>
							<font style="color: black;font-size:17px;"> ${m.mname }</font>&nbsp;&nbsp;
						<% i++; if(i%4==0){ %><br><%} %>
						</c:forEach>
					</div>
					<div class="bbD">
						<p class="bbDP">
							<button type="submit" class="btn_ok btn_yes" >提交</button>
							<a class="btn_ok btn_no" href="course/queryByPage">取消</a>
						</p>
					</div>
				</div>
			</div>

			<!-- 页面样式end -->
		</div>
	</div>
	</form>
</body>
</html>
